package com.flurry.android;

import android.content.Context;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import java.util.Collections;
import java.util.List;

abstract class ff
  implements ba, m
{
  protected abstract String O();

  protected abstract List<cs> P();

  protected abstract List<ActivityInfo> Q();

  protected abstract List<cs> R();

  protected abstract List<String> S();

  protected abstract List<String> T();

  public final ae a(Context paramContext, FlurryAds paramFlurryAds, cw paramcw, AdUnit paramAdUnit)
  {
    if ((paramContext == null) || (paramFlurryAds == null) || (paramcw == null) || (paramAdUnit == null))
      return null;
    gl localgl = new gl(O(), P(), aj(), T(), Q());
    boolean bool;
    if ((paramContext == null) || (localgl == null))
      bool = false;
    while (!bool)
    {
      return null;
      ai localai = new ai();
      if (localai == null)
        bool = false;
      else
        bool = localai.a(paramContext, localgl);
    }
    Bundle localBundle = aw.l(paramContext);
    if (localBundle == null)
      return null;
    return a(paramContext, paramFlurryAds, paramcw, paramAdUnit, localBundle);
  }

  protected abstract ae a(Context paramContext, FlurryAds paramFlurryAds, cw paramcw, AdUnit paramAdUnit, Bundle paramBundle);

  protected abstract p a(Context paramContext, FlurryAds paramFlurryAds, cw paramcw, AdCreative paramAdCreative, Bundle paramBundle);

  protected List<String> aj()
  {
    return S();
  }

  protected List<String> ak()
  {
    return S();
  }

  public final p b(Context paramContext, FlurryAds paramFlurryAds, cw paramcw, AdUnit paramAdUnit)
  {
    if ((paramContext == null) || (paramFlurryAds == null) || (paramcw == null) || (paramAdUnit == null))
      return null;
    gl localgl = new gl(O(), R(), ak(), T(), Collections.emptyList());
    boolean bool;
    if ((paramContext == null) || (localgl == null))
      bool = false;
    while (!bool)
    {
      return null;
      ai localai = new ai();
      if (localai == null)
        bool = false;
      else
        bool = localai.a(paramContext, localgl);
    }
    Bundle localBundle = aw.l(paramContext);
    if (localBundle == null)
      return null;
    AdCreative localAdCreative;
    if (paramAdUnit == null)
      localAdCreative = null;
    while (localAdCreative == null)
    {
      return null;
      List localList = paramAdUnit.getAdFrames();
      if ((localList == null) || (localList.isEmpty()))
      {
        localAdCreative = null;
      }
      else
      {
        AdFrame localAdFrame = (AdFrame)localList.get(0);
        if (localAdFrame == null)
        {
          localAdCreative = null;
        }
        else
        {
          AdSpaceLayout localAdSpaceLayout = localAdFrame.getAdSpaceLayout();
          if (localAdSpaceLayout == null)
            localAdCreative = null;
          else
            localAdCreative = ct.b(localAdSpaceLayout);
        }
      }
    }
    return a(paramContext, paramFlurryAds, paramcw, localAdCreative, localBundle);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.flurry.android.ff
 * JD-Core Version:    0.6.2
 */